import requests
import multiprocessing

threads = []


def func():
    response = requests.get("http://127.0.0.1:80/", timeout=1)
    print(response.text)


for i in range(20):
    threads.append(multiprocessing.Process(target=func, args=()))


for t in threads:
    t.start()


for t in threads:
    t.join()



